#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0;
    while (scanf("%d",&n)!=EOF)
    {
        int sum = 1;
        for (size_t i = 1; i < n; i++)
        {
            sum+=1;
            sum *= 2;
        }

        printf("%d\n", sum);
    }
    

    return 0;
}